package ru.niir.goodfil.audit.domain;

import ru.niir.goodfil.audit.domain.enums.Crud;

import javax.persistence.Entity;
import java.util.Date;

/**
 * @author: Кирилл
 */
@Entity
public class PersonalPriceEvent extends Event {
    private Crud crud;
    private Long goodId;
    private String goodCode;
    private String goodName;
    private Long clientId;
    private String clientName;
    private Float price;
    private Date begdate;
    private Date enddate;

    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public String getGoodCode() {
        return goodCode;
    }

    public void setGoodCode(String goodCode) {
        this.goodCode = goodCode;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public Long getClientId() {
        return clientId;
    }

    public void setClientId(Long clientId) {
        this.clientId = clientId;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Crud getCrud() {
        return crud;
    }

    public void setCrud(Crud crud) {
        this.crud = crud;
    }

    public Date getBegdate() {
        return begdate;
    }

    public void setBegdate(Date begdate) {
        this.begdate = begdate;
    }

    public Date getEnddate() {
        return enddate;
    }

    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

    @Override
    public String toString() {
        return "PersonalPriceEvent{" +
                "crud=" + crud +
                ", goodId=" + goodId +
                ", goodCode='" + goodCode + '\'' +
                ", goodName='" + goodName + '\'' +
                ", clientId=" + clientId +
                ", clientName='" + clientName + '\'' +
                ", price=" + price +
                ", begdate=" + begdate +
                ", enddate=" + enddate +
                '}';
    }
}
